package ysq.xyg.base.extend.ehcache;

import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import ysq.xyg.sys.model.po.SysConfig;

import java.util.List;

/**
 * 缓存
 *
 * @author taocongcong
 * @create 2019-04-11 17:19
 */
public interface EhCacheService {

    @Cacheable(value="cacheSysConfig")
    List<SysConfig> selectSysConfigList();

    @CacheEvict(value={"cacheSysConfig"}, allEntries=true)
    void evictSysConfig();
}
